﻿<p>
    This example shows how Telerik NumericTextBox for ASP.NET MVC 
    can be used to edit <em>Model property</em>.
</p>
<p>
    To use specific editor template, you should first decorate the edited property of your model
    with <strong>System.ComponentModel.DataAnnotations.DateType</strong> attribute:
</p>
<pre class="prettyprint">
        [DataType("Number")]
        public int UnitsInStock
        {
            get;
            set;
        }

        [DataType(DataType.Currency)]
        public decimal UnitPrice
        {
            get;
            set;
        }
</pre>
<p>
    You can review <strong>EditableProduct.cs</strong> file for more information.
</p>
<p>
    The next step is to create user control, which will be used to edit the Model property.
    In this demo <strong>Integer.ascx</strong> is used to edit the <em>UnitsInStock</em> property
    and <strong>Currency.ascx</strong> is used to edit the <em>UnitPrice</em> property.
</p>